import Vue from 'vue';
import App from './App';
import '../static/weui/weui.css';

Vue.config.productionTip = false;
App.mpType = 'app';

const app = new Vue(App);
app.$mount();

export default {
  // 这个字段走 app.json
  config: {
    // 页面前带有 ^ 符号的，会被编译成首页，其他页面可以选填，我们会自动把 webpack entry 里面的入口页面加进去
    pages: [
      '^pages/about/index/main',
      'pages/about/thisapp/main',
    ],
    window: {
      backgroundTextStyle: 'light',
      navigationBarBackgroundColor: '#fff',
      navigationBarTitleText: '婉秋微课',
      navigationBarTextStyle: 'black',
    },
    tabBar: {
      color: '#999999',
      selectedColor: '#444444',
      backgroundColor: '#ffffff',
      borderStyle: 'white',
      list: [
        {
          pagePath: 'pages/course/index/main',
          text: '课程',
          iconPath: 'static/images/tab/course.png',
          selectedIconPath: 'static/images/tab/course_selected.png',
        },
        {
          pagePath: 'pages/discuss/main',
          text: '讨论',
          iconPath: 'static/images/tab/discuss.png',
          selectedIconPath: 'static/images/tab/discuss_selected.png',
        },
        {
          pagePath: 'pages/about/index/main',
          text: '关于',
          iconPath: 'static/images/tab/about.png',
          selectedIconPath: 'static/images/tab/about_selected.png',
        },
      ],
    },
  },
};
